{% extends 'dns_manager/base.html' %}

{% block title %}确认删除 - DNS管理系统{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-lg-6">
        <div class="card border-0 shadow-sm">
            <div class="card-header bg-danger text-white">
                <h4 class="mb-0">
                    <i class="bi bi-exclamation-triangle me-2"></i>确认删除
                </h4>
            </div>
            
            <div class="card-body p-4 text-center">
                <div class="mb-4">
                    <i class="bi bi-trash text-danger" style="font-size: 4rem;"></i>
                </div>
                
                <h5 class="mb-3">确定要删除这个{{ object_type }}吗？</h5>
                
                <div class="alert alert-warning">
                    <strong>{{ object }}</strong>
                </div>
                
                <p class="text-muted mb-4">
                    <i class="bi bi-exclamation-circle me-1"></i>
                    此操作不可逆，删除后将无法恢复！
                </p>
                
                <form method="post" class="d-flex gap-2 justify-content-center">
                    {% csrf_token %}
                    <button type="submit" class="btn btn-danger">
                        <i class="bi bi-trash me-1"></i>确认删除
                    </button>
                    <a href="{% url cancel_url %}" class="btn btn-outline-secondary">
                        <i class="bi bi-x me-1"></i>取消
                    </a>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}